home *** CD-ROM | disk | FTP | other *** search
- Here follows the description of some of my test code
- (very crude, these are quick and dirty examples i use to debug things)
- Under Windows , run these programs FULL SCREEN in exclusive mode.
- Assembling these programs you will need at least 256k of free low memory
- and 128k of free extended memory, if you have not try to reduce
- the EXTMIN and LOWMIN constants declared into 386Power.inc
- (the minimum value for EXTMIN must be 64)
-
- EXAMPLE0.ASM
- Create it typing:
- makex example0
-
- It tries to "get up", reads the file hello.txt
- and writes it to screen in text mode
- then shows an example of "raw" keyboard
- handling (press & release keys to see what key you pressed).
- The _RKB table is cleared at every keypress.
- Pressing ESC you terminate the program.
-
- EXAMPLE1.ASM
- Create it typing:
- makex example1
-
- It looks a lot like example1 , but this time it reads
- a voc file called tiger.voc (a sample voc from Street Fighter 2)
- and then repeatly plays it back at 8008Hz.
- If you have a "slow" system or an old keyboard controller
- it may hang. Press ESC to end.
- Under Windows (DPMI) the playback rate is set to 4004Hz
- because that jerky DPMI server is too darned slow
- on my 386DX/25 (the DPMI server traps all OUT and IN opcodes)
- when the 4004Hz ISR kicks int it may seem the program has been halted
- BUT it is running (just too much CPU overhead due to DPMI
- trapping too much), wait 30 seconds if you have a slow system and
- something will happen.
- DO NOT PRESS CTRL-ALT-DEL to terminate this program, press ESC
- (and wait if you have a slow system).
-
- EXVGA.ASM
- Create it typing:
- makv exvga
- To change from example to example press ANY key.
- It kicks into mode-x (actually mode-y), draws filled rectangles
- with _Block routines then loads a pcx file featuring gearbox
- (n.b. Gearbox is protected by copyright and trademark)
- Then it loads another pcx file and samples from it
- a multicolor bitmapped font (actually a bunch of 8x8 bitmaps
- handled directly).
- Then shows it can write things :)
- and repeatly displays on the same page a matrix of 10x5
- Gearbox units using the TRLE sprite routine.
- Notice the simple screen to screen effect obtained with the
- Scr2Scr routine.
-
-